package com.hc.sss.service;

import com.hc.sss.common.ResultMap;
import com.hc.sss.pojo.RedEnvelope;

import java.util.List;
import java.util.Map;

public interface RedEnvelopeService {

    //添加红包
    int insertRedEnvelope(RedEnvelope redEnvelope);

    /*查询所有红包+分页*/
    ResultMap<RedEnvelope> findRedEnvelopeList(Map<String,Object> paramMap);

    /*修改红包*/
    int updateRedEnvelope(RedEnvelope redEnvelope);

    /*发放红包*/
    int redEnvelopeSend(Integer reId,List<Integer> userId);

    /*删除红包*/
    int deleteRedEnvelope(RedEnvelope redEnvelope);

}
